# Contributor: Fabian Affolter <fabian@affolter-engineering.ch>
# Maintainer: Francesco Colista <fcolista@alpinelinux.org>
pkgname=perl-xml-writer
_realname=XML-Writer
pkgver=0.900
pkgrel=0
pkgdesc="Perl extension for writing XML documents"
url="http://search.cpan.org/~josephw/XML-Writer-0.625/"
arch="noarch"
license="PerlArtistic"
depends="perl"
subpackages="$pkgname-doc"
source="https://cpan.metacpan.org/authors/id/J/JO/JOSEPHW/$_realname-$pkgver.tar.gz"

builddir="$srcdir/$_realname-$pkgver"

build() {
	PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor
	make
}

check() {
	make test
}

package() {
	make DESTDIR="$pkgdir" install
	find "$pkgdir" \( -name perllocal.pod -o -name .packlist \) -delete
}

sha512sums="0856146f497194529352378bdd81462e0ffd185b2464f9995dedc3b4705f517d87960a9a473e44a0ae7095bdee0e3f0121410ea6208c3adb94636e9db0c8da2e  XML-Writer-0.900.tar.gz"
